<?php 
require_once("../include/conn.php");
$sql_ma="select * from `bl_admin`  ORDER BY id DESC  ";
$cn_ma=mysql_db_query($db_name,$sql_ma);


?>
<html>
<head>
<title>管理员信息管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="Admin_Style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%"  border="0" cellpadding="0" cellspacing="2">
  <tr class="topbg">
    <th colspan="4">管理员信息管理</th>
  </tr>
  <tr>
    <td width="28%">&nbsp;</td>
    <td width="36%">&nbsp;</td>
    <td width="20%">&nbsp;</td>
    <td width="16%">&nbsp;</td>
  </tr>
  <tr class="tdbg">
    <td>用户名</td>
    <td>权限</td>
    <td>&nbsp;</td>
    <td>操作</td>
  </tr>
  <?php
   while($row_ma = mysql_fetch_array($cn_ma))
   {	
	
	?>
  <tr class="tdbg">
    <td><?php echo $row_ma[name]; ?></td>
    <td><?php 
	  if($row_ma[c_name]==6) { echo "高级管理员"; }
	 if($row_ma[c_name]==1) { echo "普通管理员"; }
	
	
	?></td>
    <td>&nbsp;</td>
    <td><a href="admin_change.php?id=<?=$row_ma[id];?>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Admin.php?id=<?=$row_ma[id];?>">删除</a></td>
  </tr>
  <?php }?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
